/**
 * Created with IntelliJ IDEA
 * Description:
 * User: SEKI TOMOKI
 * Date: 2024-09-18
 * Time: 13:28
 */

public class Test {
    public static void main(String[] args) {
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        TestHeap testHeap = new TestHeap();
        testHeap.initElem(array);
        testHeap.createHeap();
        System.out.println(testHeap);

        testHeap.offer(80);
        System.out.println(testHeap);

        testHeap.poll();
        System.out.println(testHeap);

        testHeap.smallestK(array, 3);

        testHeap.heapSort();
        System.out.println(testHeap);
    }
}
